package com.design.mode.composite;

/**
 * 叶子结点
 *
 * @author 宫静雨
 * @version 1.0
 * @since 2023-04-08 10:16:22
 */
public class Department extends OrgComponent {

    public Department(String name, String des) {
        super(name, des);
    }

    @Override
    protected void print() {
        System.out.println("Department = " + getName());
    }
}
